package com.spring.demo.spring.core.defnation;

/**
 * @Author RenPu
 * @Date 2024/2/15 22:08
 * @Version 1.0
 * @Description:
 **/
public class BeanDefinition {

    private Class type;

    private String scope;

    private boolean isLazy;

    public BeanDefinition(Class type, String scope, boolean isLazy) {
        this.type = type;
        this.scope = scope;
        this.isLazy = isLazy;
    }

    public BeanDefinition() {
    }

    public Class getType() {
        return type;
    }

    public void setType(Class type) {
        this.type = type;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public boolean isLazy() {
        return isLazy;
    }

    public void setLazy(boolean lazy) {
        isLazy = lazy;
    }

    @Override
    public String toString() {
        return "BeanDefinition{" +
                "type=" + type +
                ", scope='" + scope + '\'' +
                ", isLazy=" + isLazy +
                '}';
    }
}
